<!DOCTYPE html>
<html>
  <head>
    <!--META-->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=0.75">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">

    <!--CSS-->
    <link rel="stylesheet" href="API/css/themes/default/jquery.mobile.min.css" />
    <link rel="stylesheet" href="API/css/themes/default/jquery.mobile.structure.min.css" />
    <link rel="stylesheet" href="API/css/themes/default/jquery.mobile.theme.min.css" />
    <link rel="stylesheet" href="API/css/mycss.css" />
    <link rel="stylesheet" href="API_RH/css/mycss.css" />
    <link rel="stylesheet" href="css/mycss.css" />

    <!--JS-->
    <script type="text/javascript" src="API/js/jquery.min.js"></script>
    <script type="text/javascript" src="API/js/jquery.mobile.min.js"></script>
    <script type="text/javascript" src="API/js/highcharts.js"></script>
    <script type="text/javascript" src="API/js/modules/exporting.js"></script>
    <!--<script type="text/javascript" src="API/js/jquery.dataTables.min.js"></script>--> 
    <script type="text/javascript" src="include/config.js"></script>
    <script type="text/javascript" src="API/js/fonctions.js"></script>
    <script type="text/javascript" src="API_RH/js/fonctions.js"></script>
    <script type="text/javascript" src="js/fonctions.js"></script>
	
    <script language="javascript" type="text/javascript">
    checkMaintenance();
    checkAuthentification();
	
		///////////////////
		//BLOCK VARIABLE GLOBAL
		///////////////////
		var id_page = 9;
		
		///////////////////
		//BLOCK FONCTIONS EVENEMENTS
		///////////////////
		$(document).on('pageinit',function() {
		    try {
		        // Init commun
				init_commun();

				// Init page
				//Indicateur Qualité
				chargeTab1();
				//Indicateur Qualité VSR
				chargeTab4();
				// Pénalité
				chargeTab2();
				//ETAT DU STOCK
				chargeTab5();
				//Veillissement du stock
				chargeTabVeilStock();
            }
            catch (er) {
                log(0, "ERROR(init):" + er.message);
            }
        });
		
		$(document).on('pageshow',function() {
			try {
				show_commun();
			}
			catch (er) {
				log(0, "ERROR(show):" + er.message);
			}
		});
		
		///////////////////
		//BLOCK FONCTIONS METIER
		///////////////////
		function setCheckedEffectif(values) {
            try {
                var strResponse = "";

                xhr_object = new AJ();

                var url = "phpsql/mysql_setIndicPreTpas.php?milis="+getMilise()+values;

                xhr_object.open("GET", url, false);
                xhr_object.send(null);
                if (xhr_object.readyState == 4) {
                    strResponse = xhr_object.responseText;
                } else {
                    strResponse = "ERROR";
                }

                delete xhr_object;
            }
            catch (er) {
                log(0, "ERROR(getboard):" + er.message);
            }
        }
		
		function chargeTab1() {
            try {
                var htmlTab1 = "";
				var tabResultatTab1 = new Array();
				
				tabResultatTab1 = gettabResultatTab1();
				
				htmlTab1 = getHTMLTab1(tabResultatTab1);
                
                div_tab1.innerHTML = htmlTab1;
            }
            catch (er) {
                log(0, "ERROR(chargeTab1):" + er.message);
            }
        }
		
		function chargeTab4() {
            try {
                var htmlTab4 = "";
				var tabResultatTab4 = new Array();
				
				tabResultatTab4 = gettabResultatTab4();
				
				htmlTab4 = getHTMLTab4(tabResultatTab4);
                
                div_tab4.innerHTML = htmlTab4;
            }
            catch (er) {
                log(0, "ERROR(chargeTab4):" + er.message);
            }
        }
		
		function chargeTab2() {
            try {
                var htmlTab2 = "";
				var tabResultatTab2 = new Array();
				
				tabResultatTab2 = gettabResultatTab2();
				
				htmlTab2 = getHTMLTab2(tabResultatTab2);
                
                div_tab2.innerHTML = htmlTab2;
            }
            catch (er) {
                log(0, "ERROR(chargeTab2):" + er.message);
            }
        }
		
		function chargeTab3() {
            try {
                var htmlTab3 = "";
				var tabResultatTab3 = new Array();
				
				tabResultatTab3 = gettabResultatTab3();
				
				htmlTab3 = getHTMLTab3(tabResultatTab3);
                
                div_tab3.innerHTML = htmlTab3;
            }
            catch (er) {
                log(0, "ERROR(chargeTab3):" + er.message);
            }
        }
		
		function chargeTab5() {
            try {
                var htmlTab5 = "";
				var tabResultatTab5 = new Array();
				
				tabResultatTab5 = gettabResultatTab5();
				
				htmlTab5 = getHTMLTab5(tabResultatTab5);
                
                div_tab5.innerHTML = htmlTab5;
            }
            catch (er) {
                log(0, "ERROR(chargeTab5):" + er.message);
            }
        }
		
		///////////////////
		//BLOCK FONCTIONS BD
		///////////////////
		function getDataPreTpas() {
            try {
                var strResponse = "";
                var returns = new Array();
                var tempTab = new Array();
                var tempSubTab = new Array();

                xhr_object = new AJ();

                var url = "phpsql/mysql_getIndicPreTpas.php?milis="+getMilise()+"&crtl=ok";

                xhr_object.open("GET", url, false);
                xhr_object.send(null);
                if (xhr_object.readyState == 4) {
                    strResponse = xhr_object.responseText;
                } else {
                    strResponse = "ERROR";
                }

                tempTab = strResponse.split("\n");

                for (var indice in tempTab) {
                    tempSubTab = tempTab[indice].split("&");
                    if (tempSubTab.length > 1) {
                        returns[returns.length] = tempSubTab.slice(0, tempSubTab.length - 1);
                    }
                }

                delete xhr_object;

                return returns;
            }
            catch (er) {
                log(0, "ERROR(gettabResultatTab1):" + er.message);
            }
        }

        function gettabResultatTab1() {
            try {
                var strResponse = "";
                var returns = new Array();
                var tempTab = new Array();
                var tempSubTab = new Array();

                xhr_object = new AJ();

                var url = "phpsql/mysql_getIndReport1.php?milis="+getMilise()+"&crtl=ok";

                xhr_object.open("GET", url, false);
                xhr_object.send(null);
                if (xhr_object.readyState == 4) {
                    strResponse = xhr_object.responseText;
                } else {
                    strResponse = "ERROR";
                }

                tempTab = strResponse.split("\n");

                for (var indice in tempTab) {
                    tempSubTab = tempTab[indice].split("&");
                    if (tempSubTab.length > 1) {
                        returns[returns.length] = tempSubTab.slice(0, tempSubTab.length - 1);
                    }
                }

                delete xhr_object;

                return returns;
            }
            catch (er) {
                log(0, "ERROR(gettabResultatTab1):" + er.message);
            }
        }
		
		function gettabResultatTab4() {
            try {
                var strResponse = "";
                var returns = new Array();
                var tempTab = new Array();
                var tempSubTab = new Array();

                xhr_object = new AJ();

                var url = "phpsql/mysql_getIndReport4_vsr.php?milis="+getMilise()+"&crtl=ok";

                xhr_object.open("GET", url, false);
                xhr_object.send(null);
                if (xhr_object.readyState == 4) {
                    strResponse = xhr_object.responseText;
                } else {
                    strResponse = "ERROR";
                }

                tempTab = strResponse.split("\n");

                for (var indice in tempTab) {
                    tempSubTab = tempTab[indice].split("&");
                    if (tempSubTab.length > 1) {
                        returns[returns.length] = tempSubTab.slice(0, tempSubTab.length - 1);
                    }
                }

                delete xhr_object;

                return returns;
            }
            catch (er) {
                log(0, "ERROR(gettabResultatTab4):" + er.message);
            }
        }
		
		function gettabResultatTab2() {
            try {
                var strResponse = "";
                var returns = new Array();
                var tempTab = new Array();
                var tempSubTab = new Array();

                xhr_object = new AJ();

                var url = "phpsql/mysql_getIndReport2.php?milis="+getMilise()+"&crtl=ok";

                xhr_object.open("GET", url, false);
                xhr_object.send(null);
                if (xhr_object.readyState == 4) {
                    strResponse = xhr_object.responseText;
                } else {
                    strResponse = "ERROR";
                }

                tempTab = strResponse.split("\n");

                for (var indice in tempTab) {
                    tempSubTab = tempTab[indice].split("&");
                    if (tempSubTab.length > 1) {
                        returns[returns.length] = tempSubTab.slice(0, tempSubTab.length - 1);
                    }
                }

                delete xhr_object;

                return returns;
            }
            catch (er) {
                log(0, "ERROR(gettabResultatTab2):" + er.message);
            }
        }
		
		function gettabResultatTab3() {
            try {
                var strResponse = "";
                var returns = new Array();
                var tempTab = new Array();
                var tempSubTab = new Array();

                xhr_object = new AJ();

                var url = "phpsql/mysql_getIndReport3.php?milis="+getMilise()+"&crtl=ok";

                xhr_object.open("GET", url, false);
                xhr_object.send(null);
                if (xhr_object.readyState == 4) {
                    strResponse = xhr_object.responseText;
                } else {
                    strResponse = "ERROR";
                }

                tempTab = strResponse.split("\n");

                for (var indice in tempTab) {
                    tempSubTab = tempTab[indice].split("&");
                    if (tempSubTab.length > 1) {
                        returns[returns.length] = tempSubTab.slice(0, tempSubTab.length - 1);
                    }
                }

                delete xhr_object;

                return returns;
            }
            catch (er) {
                log(0, "ERROR(gettabResultatTab3):" + er.message);
            }
        }
		
		function getTabResultatTabVeilStock() {
            try {
                var strResponse = "";
                var returns = new Array();
                var tempTab = new Array();
                var tempSubTab = new Array();

                xhr_object = new AJ();

                var url = "phpsql/mysql_getVeillissementStock.php?milis="+getMilise()+"&crtl=ok";

                xhr_object.open("GET", url, false);
                xhr_object.send(null);
                if (xhr_object.readyState == 4) {
                    strResponse = xhr_object.responseText;
                } else {
                    strResponse = "ERROR";
                }

                tempTab = strResponse.split("\n");

                for (var indice in tempTab) {
                    tempSubTab = tempTab[indice].split("&");
                    if (tempSubTab.length > 1) {
                        returns[returns.length] = tempSubTab.slice(0, tempSubTab.length - 1);
                    }
                }

                delete xhr_object;

                return returns;
            }
            catch (er) {
                log(0, "ERROR(getTabResultatTabVeilStock):" + er.message);
            }
        }
		
		
		///////////////////
		//BLOCK FONCTIONS AFFICHAGE
		///////////////////
		function chargeTabVeilStock() {
            try {
				var tabResultat = new Array();

				tabResultat = getTabResultatTabVeilStock();
				
				var tabCat = new Array();

				for (var indice in tabResultat) {
				    tabCat[tabCat.length] = tabResultat[indice][0];
				}

				var tabSeries = new Array();
				var tabSubSeries = new Array();
				var tabSubSeries_horsSn3 = new Array();
				var tabSubSeries_Sn3 = new Array();
				var tabSubSeries_retour = new Array();
				var tabSubSeries_emis = new Array();

				for (var indice in tabResultat) {
					tabSubSeries[tabSubSeries.length] = parseInt(tabResultat[indice][1]);
                    tabSubSeries_Sn3[tabSubSeries_Sn3.length] = parseInt(tabResultat[indice][2]);
					tabSubSeries_horsSn3[tabSubSeries_horsSn3.length] = parseInt(tabResultat[indice][3]);
					tabSubSeries_retour[tabSubSeries_retour.length] = parseInt(tabResultat[indice][4]);
					tabSubSeries_emis[tabSubSeries_emis.length] = parseInt(tabResultat[indice][5]);
				}
				
				tabSeries[tabSeries.length] = {
					name: "Total",
					data: tabSubSeries
				};
				
				tabSeries[tabSeries.length] = {
					name: "Sn3",
					data: tabSubSeries_Sn3
				};
				
				tabSeries[tabSeries.length] = {
					name: "Hors Sn3",
					data: tabSubSeries_horsSn3
				};
				
				tabSeries[tabSeries.length] = {
					name: "Retours",
					data: tabSubSeries_retour
				};
				
				tabSeries[tabSeries.length] = {
					name: "Emis",
					data: tabSubSeries_emis
				};
				
				afficheVeilStock(tabCat, tabSeries);
            }
            catch (er) {
                log(0, "ERROR(chargeTabVeilStock):" + er.message);
            }
        }
		
		function afficheVeilStock(p_tabCat, p_tabSeries) {
            var chart;

			$(document).ready(function() {
				chart = new Highcharts.Chart({
					exporting: {
						url: 'http://export.highcharts.com',
						filename: 'vieillissement_stock',
						width: 1600
					},
					chart: {
						renderTo: 'div_tabVeilStock',
						defaultSeriesType: 'column'
					},
					title: {
						text: 'Tickets ouverts compt\351s par mois'
					},
					subtitle: {
						text: 'Source: ODA.'
					},
					xAxis: {
						categories: p_tabCat
					},
					yAxis: {
						min: 0,
						title: {
							text: 'Nombre de toc'
						}
					},
					legend: {
						layout: 'vertical',
						backgroundColor: '#FFFFFF',
						align: 'left',
						verticalAlign: 'top',
						x: 100,
						y: 70,
						floating: true,
						shadow: true
					},
					tooltip: {
						formatter: function() {
							return '' + this.y + '.';
						}
					},
					plotOptions: {
						column: {
							pointPadding: 0.2,
							borderWidth: 0
						}
					},
					series: p_tabSeries
				});
			});
			
        }
		
		function getHTMLTab1(tabResultatTab1) {
            try {
                var indiceConfiance = Math.round((1 / parseFloat(tabResultatTab1[75][0]))*100);
				
				var strRetour = "";
				
				strRetour += "<br>";
				strRetour += "<table style=\"text-align: left; width: 100%;background-color:white;text-shadow: none;color: rgb(0, 0, 0);\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#000000\">";
				strRetour += "  <tbody>";
				strRetour += "	<tr>";
				strRetour += "	  <td style=\"background-color: rgb(51, 102, 255);\">&nbsp;<span style=\"color: white\">Indicateur Qualit\351</span></td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\" colspan=\"1\" rowspan=\"2\"><span style=\"color: white\">Engagements</span></td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\" colspan=\"1\" rowspan=\"2\"><span style=\"color: white\">R\351sultat<br>-cumul\351 sur 12 mois<br>-moyenne</span></td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\" colspan=\"4\" rowspan=\"1\"><span style=\"color: white\">R\351sultats mensuels</span></td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\"><span style=\"color: white\">Pr\351visionel</span></td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\"><span style=\"color: white\">Nom indicateur</span></td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\"><span style=\"color: white\">" + tabResultatTab1[2][3] + "</span></td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\"><span style=\"color: white\">" + tabResultatTab1[2][2] + "</span></td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\"><span style=\"color: white\">" + tabResultatTab1[2][1] + "</span></td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\"><span style=\"color: white\">" + tabResultatTab1[2][0] + "</span></td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\"><span style=\"color: white\">(" + indiceConfiance + "%)</span></td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;<span style=\"color: blue\">Activit\351</span></td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;Nombre de ticket d'incident re\347u par mois</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab1[0][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[6][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[5][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[4][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[3][0] + "</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + (Math.round(parseInt(tabResultatTab1[3][0]) * parseFloat(tabResultatTab1[75][0]))) + "</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;Nombre de ticket d'incident r\351solu par mois</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab1[1][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[10][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[9][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[8][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[7][0] + "</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + (Math.round(parseInt(tabResultatTab1[7][0]) * parseFloat(tabResultatTab1[75][0]))) + "</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;<span style=\"color: blue\">Disponibilit\351</span></td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td>&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;<b>Soutien temps d'intervention</b></td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td>&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;&nbsp;&nbsp;% de tickets d'incident pris en compte dans une periode de 1 heure (<=1h)</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: silver;\">&nbsp;90%</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab1[13][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[25][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[22][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[19][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[16][0] + "%</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[24][0] + "/" + tabResultatTab1[23][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[21][0] + "/" + tabResultatTab1[20][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[18][0] + "/" + tabResultatTab1[17][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[15][0] + "/" + tabResultatTab1[14][0] + "</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;<b>Nombre de ticket soutien en attente de r&eacute;solution(Stock)</b></td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td>&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;&nbsp;&nbsp;Nombre de tickets d'incident en stock en responsabilit&eacute; CGI (y compris retours)</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[77][0] + "</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;&nbsp;&nbsp;Nombre de tickets d'incident en stock transmis par CGI vers une autre organisation</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[76][0] + "</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
			
				stock  = parseInt(tabResultatTab1[76][0]) + parseInt(tabResultatTab1[77][0]);
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;&nbsp;&nbsp;Nombre global de tickets d'incident en stock \340 la fin du mois</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + stock + "</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;<span style=\"color: blue\">R\351activit\351</span></td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: white;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;(*)sauf indication contraire dans le Scope of Work</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td style=\"text-align: right;\">&nbsp;% d'incidents Majeur Urgents ou Bloquants r\351solus (<=(*)8h)</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: silver;\">&nbsp;90%</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab1[28][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[40][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[37][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[34][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[31][0] + "%</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab1[27][0] + "/" + tabResultatTab1[26][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[39][0] + "/" + tabResultatTab1[38][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[36][0] + "/" + tabResultatTab1[35][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[33][0] + "/" + tabResultatTab1[32][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[30][0] + "/" + tabResultatTab1[29][0] + "</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td style=\"text-align: right;\">&nbsp;% d'incidents Majeurs r\351solus (<=(*) 16h)</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: silver;\">&nbsp;85%</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab1[43][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[55][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[52][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[49][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[46][0] + "%</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab1[42][0] + "/" + tabResultatTab1[41][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[54][0] + "/" + tabResultatTab1[53][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[51][0] + "/" + tabResultatTab1[50][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[48][0] + "/" + tabResultatTab1[47][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[45][0] + "/" + tabResultatTab1[44][0] + "</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td style=\"text-align: right;\">&nbsp;% d'incidents Mineurs r\351solus (<=(*) 40h)</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: silver;\">&nbsp;80%</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab1[58][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[70][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[67][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[64][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[61][0] + "%</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab1[57][0] + "/" + tabResultatTab1[56][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[69][0] + "/" + tabResultatTab1[68][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[66][0] + "/" + tabResultatTab1[65][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[63][0] + "/" + tabResultatTab1[62][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab1[60][0] + "/" + tabResultatTab1[59][0] + "</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "  </tbody>";
				strRetour += "</table>";
				
				return strRetour;
            }
            catch (er) {
                log(0, "ERROR(getHTMLTab1):" + er.message);
            }
        }
		
		function getHTMLTab4(tabResultatTab4) {
            try {
                var indiceConfiance = Math.round((1 / parseFloat(tabResultatTab4[75][0]))*100);
				
				var strRetour = "";
				
				strRetour += "<br>";
				strRetour += "<table style=\"text-align: left; width: 100%;background-color:white;text-shadow: none;color: rgb(0, 0, 0);\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#000000\">";
				strRetour += "  <tbody>";
				strRetour += "	<tr>";
				strRetour += "	  <td style=\"background-color: rgb(51, 102, 255);\">&nbsp;<span style=\"color: white\">Indicateur Qualit\351 VSR</span></td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\" colspan=\"1\" rowspan=\"2\"><span style=\"color: white\">Engagements</span></td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\" colspan=\"1\" rowspan=\"2\"><span style=\"color: white\">R\351sultat<br>-cumul\351 sur 12 mois<br>-moyenne</span></td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\" colspan=\"4\" rowspan=\"1\"><span style=\"color: white\">R\351sultats mensuels</span></td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\"><span style=\"color: white\">Pr\351visionel</span></td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\"><span style=\"color: white\">Nom indicateur</span></td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\"><span style=\"color: white\">" + tabResultatTab4[2][3] + "</span></td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\"><span style=\"color: white\">" + tabResultatTab4[2][2] + "</span></td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\"><span style=\"color: white\">" + tabResultatTab4[2][1] + "</span></td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\"><span style=\"color: white\">" + tabResultatTab4[2][0] + "</span></td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: rgb(51, 102, 255);\"><span style=\"color: white\">(" + indiceConfiance + "%)</span></td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;<span style=\"color: blue\">Activit\351</span></td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;Nombre de ticket d'incident re\347u par mois</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab4[0][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[6][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[5][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[4][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[3][0] + "</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + (Math.round(parseInt(tabResultatTab4[3][0]) * parseFloat(tabResultatTab4[75][0]))) + "</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;Nombre de ticket d'incident r\351solu par mois</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab4[1][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[10][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[9][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[8][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[7][0] + "</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + (Math.round(parseInt(tabResultatTab4[7][0]) * parseFloat(tabResultatTab4[75][0]))) + "</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;<span style=\"color: blue\">Disponibilit\351</span></td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td>&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;SOUTIEN TEMPS D'INTERVENTION</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td>&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;&nbsp;&nbsp;% de tickets d'incident pris en compte dans une periode de 1 heure (<=1h)</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: silver;\">&nbsp;90%</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab4[13][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[25][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[22][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[19][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[16][0] + "%</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[24][0] + "/" + tabResultatTab4[23][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[21][0] + "/" + tabResultatTab4[20][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[18][0] + "/" + tabResultatTab4[17][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[15][0] + "/" + tabResultatTab4[14][0] + "</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;NOMBRE DE TICKET SOUTIEN EN ATTENTE DE RESOLUTION</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td>&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;&nbsp;&nbsp;Nombre de tickets d'incident en attente de solution \340 la fin du mois</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab4[71][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[74][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[73][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[72][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[71][0] + "</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				prev_stock  = parseInt(tabResultatTab4[72][0]) + Math.round((parseInt(tabResultatTab4[71][0]) - parseInt(tabResultatTab4[72][0]))* parseFloat(tabResultatTab4[75][0]));
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + prev_stock + "</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;<span style=\"color: blue\">R\351activit\351</span></td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: white;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;(*)sauf indication contraire dans le Scope of Work</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td style=\"text-align: right;\">&nbsp;% d'incidents Majeur Urgents ou Bloquants r\351solus (<=(*)8h)</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: silver;\">&nbsp;90%</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab4[28][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[40][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[37][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[34][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[31][0] + "%</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab4[27][0] + "/" + tabResultatTab4[26][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[39][0] + "/" + tabResultatTab4[38][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[36][0] + "/" + tabResultatTab4[35][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[33][0] + "/" + tabResultatTab4[32][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[30][0] + "/" + tabResultatTab4[29][0] + "</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td style=\"text-align: right;\">&nbsp;% d'incidents Majeurs r\351solus (<=(*) 16h)</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: silver;\">&nbsp;85%</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab4[43][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[55][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[52][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[49][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[46][0] + "%</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab4[42][0] + "/" + tabResultatTab4[41][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[54][0] + "/" + tabResultatTab4[53][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[51][0] + "/" + tabResultatTab4[50][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[48][0] + "/" + tabResultatTab4[47][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[45][0] + "/" + tabResultatTab4[44][0] + "</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td style=\"text-align: right;\">&nbsp;% d'incidents Mineurs r\351solus (<=(*) 40h)</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: silver;\">&nbsp;80%</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab4[58][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[70][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[67][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[64][0] + "%</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[61][0] + "%</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "	<tr>";
				strRetour += "	  <td>&nbsp;</td>";
				strRetour += "	  <td style=\"background-color: silver;\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;\">" + tabResultatTab4[57][0] + "/" + tabResultatTab4[56][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[69][0] + "/" + tabResultatTab4[68][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[66][0] + "/" + tabResultatTab4[65][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[63][0] + "/" + tabResultatTab4[62][0] + "</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">" + tabResultatTab4[60][0] + "/" + tabResultatTab4[59][0] + "</td>";
				strRetour += "	  <td style=\"border-top-width:0px;border-bottom-width:0px\">&nbsp;</td>";
				strRetour += "	  <td style=\"text-align: center;background-color: #B5E655;\">&nbsp;</td>";
				strRetour += "	</tr>";
				strRetour += "  </tbody>";
				strRetour += "</table>";
				
				return strRetour;
            }
            catch (er) {
                log(0, "ERROR(getHTMLTab4):" + er.message);
            }
        }
		
		function getHTMLTab2(tabResultatTab2) {
            try {
                var strRetour = "";
				
				strRetour += "<br>";
				strRetour += "P\351nalit\351 pr\351visionelle pour le P1 =  3000&euro; X " + tabResultatTab2[9][0] + "(Nb toc d\351pass\351) X 1J X (90%-" + tabResultatTab2[2][0] + "%) = " + tabResultatTab2[12][0] + "&euro;<br>\n";
				strRetour += "P\351nalit\351 pr\351visionelle pour le P2 =  1500&euro; X " + tabResultatTab2[10][0] + "(Nb toc d\351pass\351) X 2J X (85%-" + tabResultatTab2[5][0] + "%) = " + tabResultatTab2[13][0] + "&euro;<br>\n";
				strRetour += "P\351nalit\351 pr\351visionelle pour le P3 et P4 =  500&euro; X " + tabResultatTab2[11][0] + "(Nb toc d\351pass\351) X 5J X (80%-" + tabResultatTab2[8][0] + "%) = " + tabResultatTab2[14][0] + "&euro;<br>\n";
				strRetour += "Pour un total de <b>" + tabResultatTab2[15][0] + "&euro;</b><br>\n";
				
				return strRetour;
            }
            catch (er) {
                log(0, "ERROR(getHTMLTab2):" + er.message);
            }
        }
		
		function getHTMLTab3(tabResultatTab3) {
            try {
                var strRetour = "";
				
				strRetour += "<br>\n";
				strRetour += "	<table style=\"border-collapse: collapse; width: 700px;text-shadow: none;color: rgb(0, 0, 0);\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\">\n";
				strRetour += "		<col span=\"7\" style=\"width: 60pt;\">\n";
				strRetour += "  	<tbody>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=DarkGray;\">\n";
				strRetour += "	  			<td style=\"text-align:center;height: 15.75pt; width: 200pt;font-weight: bold;\">Statut</td>\n";
				strRetour += "				<td colspan=\"2\" style=\"text-align:center; width: 200pt;font-weight: bold;\">Nombre de fiches</td>\n";
				strRetour += "				<td colspan=\"2\" style=\"text-align:center; width: 200pt;font-weight: bold;\">Nombre de fiches \351mises</td>\n";
				strRetour += "				<td colspan=\"2\" style=\"text-align:center; width: 200pt;font-weight: bold;\">TOTAL</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;\">\n";
				strRetour += "				<td style=\"height: 15.75pt; padding-bottom: 0cm; padding-top: 0cm;\"></td>\n";
				strRetour += "				<td style=\"text-align:center;padding-bottom: 0cm; padding-top: 0cm;\">Stock</td>\n";
				strRetour += "				<td style=\"text-align:center;padding-bottom: 0cm; padding-top: 0cm;\">TPAS</td>\n";
				strRetour += "				<td style=\"text-align:center;padding-bottom: 0cm; padding-top: 0cm;\">Stock</td>\n";
				strRetour += "				<td style=\"text-align:center;padding-bottom: 0cm; padding-top: 0cm;\">TPAS</td>\n";
				strRetour += "				<td style=\"text-align:center;padding-bottom: 0cm; padding-top: 0cm;\">Stock</td>\n";
				strRetour += "				<td style=\"text-align:center;padding-bottom: 0cm; padding-top: 0cm;\">TPAS</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=NavajoWhite;\">\n";
				strRetour += "				<td style=\"height: 15.75pt;\">R\351ception</td>\n";
				strRetour += "				<td style=\"text-align:center;\">" + tabResultatTab3[1][0] + "</td>\n";
				strRetour += "				<td style=\"text-align:center;\">" + tabResultatTab3[2][0] + "</td>\n";
				strRetour += "				<td style=\"text-align:center;\">" + tabResultatTab3[3][0] + "</td>\n";
				strRetour += "				<td style=\"text-align:center;\">" + tabResultatTab3[4][0] + "</td>\n";
				var1 = parseInt(tabResultatTab3[1][0]) + parseInt(tabResultatTab3[3][0]);
				strRetour += "				<td style=\"text-align:center;\">" + var1 + "</td>\n";
				var2 = parseInt(tabResultatTab3[2][0]) + parseInt(tabResultatTab3[4][0]);
				strRetour += "				<td style=\"text-align:center;\">" + var2 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=NavajoWhite;\">\n";
				strRetour += "				<td style=\"height: 15.75pt;\">Pris en main</td>\n";
				strRetour += "				<td style=\"text-align:center;\">" + tabResultatTab3[5][0] + "</td>\n";
				strRetour += "				<td style=\"text-align:center;\">" + tabResultatTab3[6][0] + "</td>\n";
				strRetour += "				<td style=\"text-align:center;\">" + tabResultatTab3[7][0] + "</td>\n";
				strRetour += "				<td style=\"text-align:center;\">" + tabResultatTab3[8][0] + "</td>\n";
				var3 = (parseInt(tabResultatTab3[5][0]) + parseInt(tabResultatTab3[7][0]));
				strRetour += "				<td style=\"text-align:center;\">" + var3 + "</td>\n";
				var4 = (parseInt(tabResultatTab3[6][0]) + parseInt(tabResultatTab3[8][0]));
				strRetour += "				<td style=\"text-align:center;\">" + var4 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=NavajoWhite;\">\n";
				strRetour += "			  <td style=\"height: 15.75pt;\">En analyse</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[9][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[10][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[11][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[12][0] + "</td>\n";
				var5 = (parseInt(tabResultatTab3[9][0]) + parseInt(tabResultatTab3[11][0]));
				strRetour += "			  <td style=\"text-align:center;\">" + var5 + "</td>\n";
				var6 = (parseInt(tabResultatTab3[10][0]) + parseInt(tabResultatTab3[12][0]));
				strRetour += "			  <td style=\"text-align:center;\">" + var6 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=Yellow;\">\n";
				strRetour += "			  <td style=\"height: 15.75pt;font-weight: bold;\">Total - Fiches en cours</td>\n";
				var7 = (parseInt(tabResultatTab3[1][0]) + parseInt(tabResultatTab3[5][0]) + parseInt(tabResultatTab3[9][0]));
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var7 + "</td>\n";
				var8 = (parseInt(tabResultatTab3[2][0]) + parseInt(tabResultatTab3[6][0]) + parseInt(tabResultatTab3[10][0]));
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var8 + "</td>\n";
				var9 = (parseInt(tabResultatTab3[3][0]) + parseInt(tabResultatTab3[7][0]) + parseInt(tabResultatTab3[11][0]));
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var9 + "</td>\n";
				var10 = (parseInt(tabResultatTab3[4][0]) + parseInt(tabResultatTab3[8][0]) + parseInt(tabResultatTab3[12][0]));
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var10 + "</td>\n";
				var33 = (var1 + var3 + var5);
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var33 + "</td>\n";
				var34 = (var2 + var4 + var6);
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var34 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=Yellow;\">\n";
				strRetour += "			  <td style=\"height: 15.75pt;font-weight: bold;\">TOTAL</td>\n";
				var35 = var7 + var8;
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;font-weight: bold;\">" + var35 + "</td>\n";
				var36 = var9 + var10;
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;font-weight: bold;\">" + var36 + "</td>\n";
				var37 = var33 + var34;
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;font-weight: bold;\">" + var37 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=LightSkyBlue;\">\n";
				strRetour += "			  <td style=\"height: 15.75pt;\">Demande d'information</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[13][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[14][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[15][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[16][0] + "</td>\n";
				var11 = (parseInt(tabResultatTab3[13][0]) + parseInt(tabResultatTab3[15][0]));
				strRetour += "			  <td style=\"text-align:center;\">" + var11 + "</td>\n";
				var12 = (parseInt(tabResultatTab3[14][0]) + parseInt(tabResultatTab3[16][0]));
				strRetour += "			  <td style=\"text-align:center;\">" + var12 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=LightSkyBlue;\">\n";
				strRetour += "			  <td style=\"height: 15.75pt;\">Demande incomplète</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[17][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[18][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[19][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[20][0] + "</td>\n";
				var13 = (parseInt(tabResultatTab3[17][0]) + parseInt(tabResultatTab3[19][0]));
				strRetour += "			  <td style=\"text-align:center;\">" + var13 + "</td>\n";
				var14 = (parseInt(tabResultatTab3[18][0]) + parseInt(tabResultatTab3[20][0]));
				strRetour += "			  <td style=\"text-align:center;\">" + var14 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=LightSkyBlue;\">\n";
				strRetour += "			  <td style=\"height: 15.75pt;\">Support/D\351blocage</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[21][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[22][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[23][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[24][0] + "</td>\n";
				var15 = (parseInt(tabResultatTab3[21][0]) + parseInt(tabResultatTab3[23][0]));
				strRetour += "			  <td style=\"text-align:center;\">" + var15 + "</td>\n";
				var16 = (parseInt(tabResultatTab3[22][0]) + parseInt(tabResultatTab3[24][0]));
				strRetour += "			  <td style=\"text-align:center;\">" + var16 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=DodgerBlue;\">\n";
				strRetour += "			  <td style=\"height: 15.75pt;font-weight: bold;\">Total - Fiches transmises</td>\n";
				var17 = (parseInt(tabResultatTab3[13][0]) + parseInt(tabResultatTab3[17][0]) + parseInt(tabResultatTab3[21][0]));
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var17 + "</td>\n";
				var18 = (parseInt(tabResultatTab3[14][0]) + parseInt(tabResultatTab3[18][0]) + parseInt(tabResultatTab3[22][0]));
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var18 + "</td>\n";
				var19 = (parseInt(tabResultatTab3[15][0]) + parseInt(tabResultatTab3[19][0]) + parseInt(tabResultatTab3[23][0]));
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var19 + "</td>\n";
				var20 = (parseInt(tabResultatTab3[16][0]) + parseInt(tabResultatTab3[20][0]) + parseInt(tabResultatTab3[24][0]));
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var20 + "</td>\n";
				var21 = var17 + var19;
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var21 + "</td>\n";
				var22 = var18 + var20;
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var22 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=DodgerBlue;\">\n";
				strRetour += "			  <td style=\"height: 15.75pt;font-weight: bold;\">TOTAL</td>\n";
				var38 = var17 + var18;
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;font-weight: bold;\">" + var38 + "</td>\n";
				var39 = var19 + var20;
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;font-weight: bold;\">" + var39 + "</td>\n";
				var40 = var38 + var39;
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;font-weight: bold;\">" + var40 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=LightGreen;\">\n";
				strRetour += "			  <td style=\"height: 15.75pt;\">Demande injustifi\351e</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[25][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[26][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[27][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[28][0] + "</td>\n";
				var23 = (parseInt(tabResultatTab3[25][0]) + parseInt(tabResultatTab3[27][0]));
				strRetour += "			  <td style=\"text-align:center;\">" + var23 + "</td>\n";
				var24 = (parseInt(tabResultatTab3[26][0]) + parseInt(tabResultatTab3[28][0]));
				strRetour += "			  <td style=\"text-align:center;\">" + var24 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=LightGreen;\">\n";
				strRetour += "			  <td style=\"height: 15.75pt;\">Rejet demande</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[29][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[30][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[31][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[32][0] + "</td>\n";
				var25 = (parseInt(tabResultatTab3[29][0]) + parseInt(tabResultatTab3[31][0]));
				strRetour += "			  <td style=\"text-align:center;\">" + var25 + "</td>\n";
				var26 = (parseInt(tabResultatTab3[31][0]) + parseInt(tabResultatTab3[32][0]));
				strRetour += "			  <td style=\"text-align:center;\">" + var26 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=Green;\">\n";
				strRetour += "			  <td style=\"height: 15.75pt;font-weight: bold;\">Total - Fiches rejet\351es</td>\n";
				var27 = (parseInt(tabResultatTab3[25][0]) + parseInt(tabResultatTab3[29][0]));
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var27 + "</td>\n";
				var28 = (parseInt(tabResultatTab3[26][0]) + parseInt(tabResultatTab3[30][0]));
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var28 + "</td>\n";
				var29 = (parseInt(tabResultatTab3[27][0]) + parseInt(tabResultatTab3[31][0]));
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var29 + "</td>\n";
				var30 = (parseInt(tabResultatTab3[29][0]) + parseInt(tabResultatTab3[32][0]));
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var30 + "</td>\n";
				var31 = var27 + var29;
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var31 + "</td>\n";
				var32 = var28 + var30;
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var32 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=Green;\">\n";
				strRetour += "			  <td style=\"height: 15.75pt;font-weight: bold;\">TOTAL</td>\n";
				var41 = var27 + var28;
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;font-weight: bold;\">" + var41 + "</td>\n";
				var42 = var29 + var30;
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;font-weight: bold;\">" + var42 + "</td>\n";
				var43 = var41 + var42;
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;font-weight: bold;\">" + var43 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=LightGray;\">\n";
				strRetour += "			  <td style=\"height: 15.75pt;font-weight: bold;\">TOTAL</td>\n";
				var44 = var7 + var17 + var27;
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var44 + "</td>\n";
				var45 = var8 + var18 + var28;
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var45 + "</td>\n";
				var46 = var9 + var19 + var29;
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var46 + "</td>\n";
				var47 = var10 + var20 + var30;
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var47 + "</td>\n";
				var48 = var33 + var21 + var31;
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var48 + "</td>\n";
				var49 = var34 + var22 + var32;
				strRetour += "			  <td style=\"text-align:center;font-weight: bold;\">" + var49 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=LightGray;\">\n";
				strRetour += "			  <td style=\"height: 15.75pt;font-weight: bold;\">Total</td>\n";
				var50 = var44 + var45;
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;font-weight: bold;\">" + var50 + "</td>\n";
				var51 = var46 + var47;
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;font-weight: bold;\">" + var51 + "</td>\n";
				var52 = var48 + var49;
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;font-weight: bold;\">" + var52 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;\">\n";
				strRetour += "			  <td style=\"height: 15.75pt; padding-bottom: 0cm; padding-top: 0cm;\"></td>\n";
				strRetour += "			  <td style=\"padding-bottom: 0cm; padding-top: 0cm;\"></td>\n";
				strRetour += "			  <td style=\"padding-bottom: 0cm; padding-top: 0cm;\"></td>\n";
				strRetour += "			  <td style=\"padding-bottom: 0cm; padding-top: 0cm;\"></td>\n";
				strRetour += "			  <td style=\"padding-bottom: 0cm; padding-top: 0cm;\"></td>\n";
				strRetour += "			  <td style=\"padding-bottom: 0cm; padding-top: 0cm;\"></td>\n";
				strRetour += "			  <td style=\"padding-bottom: 0cm; padding-top: 0cm;\"></td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 39.75pt;background-color=NavajoWhite;\">\n";
				strRetour += "			  <td style=\"width: 60pt;\">Fiches re\347ues dans la journ\351e</td>\n";
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;\">" + tabResultatTab3[33][0] + "</td>\n";
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;\">" + tabResultatTab3[34][0] + "</td>\n";
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;\">" + (parseInt(tabResultatTab3[33][0]) + parseInt(tabResultatTab3[34][0])) + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=NavajoWhite;\">\n";
				strRetour += "			  <td rowspan=\"2\" style=\"height: 31.5pt;\" height=\"42\">Fiches ferm\351es dans la journ\351e</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[35][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[36][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[37][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[38][0] + "</td>\n";
				var53 = (parseInt(tabResultatTab3[35][0]) + parseInt(tabResultatTab3[37][0]));
				strRetour += "			  <td style=\"text-align:center;\">" + var53 + "</td>\n";
				var54 = (parseInt(tabResultatTab3[36][0]) + parseInt(tabResultatTab3[38][0]));
				strRetour += "			  <td style=\"text-align:center;\">" + var54 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=NavajoWhite;\">\n";
				var55 = (parseInt(tabResultatTab3[35][0]) + parseInt(tabResultatTab3[36][0]));
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center; height: 15.75pt;\">" + var55 + "</td>\n";
				var56 = (parseInt(tabResultatTab3[37][0]) + parseInt(tabResultatTab3[38][0]));
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;\">" + var56 + "</td>\n";
				var57 = var53 + var54;
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;\">" + var57 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 35.25pt;background-color=NavajoWhite;\" height=\"47\">\n";
				strRetour += "			  <td rowspan=\"2\" style=\"width: 60pt;\">Fiche en correction dans la journ\351e</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[39][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[40][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[41][0] + "</td>\n";
				strRetour += "			  <td style=\"text-align:center;\">" + tabResultatTab3[42][0] + "</td>\n";
				var58 = (parseInt(tabResultatTab3[39][0]) + parseInt(tabResultatTab3[41][0]));
				strRetour += "			  <td style=\"text-align:center;\">" + var58 + "</td>\n";
				var59 = (parseInt(tabResultatTab3[40][0]) + parseInt(tabResultatTab3[42][0]));
				strRetour += "			  <td style=\"text-align:center;\">" + var59 + "</td>\n";
				strRetour += "			</tr>\n";
				strRetour += "			<tr style=\"height: 15.75pt;background-color=NavajoWhite;\">\n";
				var60 = (parseInt(tabResultatTab3[39][0]) + parseInt(tabResultatTab3[40][0]));
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center; height: 15.75pt;\">" + var60 + "</td>\n";
				var61 = (parseInt(tabResultatTab3[41][0]) + parseInt(tabResultatTab3[42][0]));
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;\">" + var61 + "</td>\n";
				var62 = var60 + var61;
				strRetour += "			  <td colspan=\"2\" style=\"text-align:center;\">" + var62 + "</td>\n";
				strRetour += "			</tr>\n";		
				strRetour += "		  </tbody>\n";
				strRetour += "		</table>\n";
				strRetour += "<br>\n";
				
				return strRetour;
            }
            catch (er) {
                log(0, "ERROR(getHTMLTab3):" + er.message);
            }
        }
		
    </script>
	
  </head>
  <body>
    
	<!-- page -->
	<div data-role="page" data-title="Titre">
	
		<!-- /panel -->
		<div data-role="panel" id="mypanel" data-display="overlay" data-position="left">

		</div>
		<!-- /panel -->
	
		<!-- header -->
		<div data-role="header" data-position="fixed">
			<a href="#mypanel" data-role="button" data-icon="home" data-iconpos="notext">home</a>
			<h1 id="id_titre">titre</h1>
			<a href="javascript:window.location = ('./page_contact.html?mili='+getMilise());" data-role="button" data-icon="info" data-iconpos="notext">Contact</a>
		</div>
		<!-- /header -->
		
		<!-- content -->
		<div data-role="content" id="main_content">
			
			<div data-role="collapsible" data-collapsed="false" data-mini="true">
				<h3>Indicateur Qualit&eacute;</h3>
				<div id="div_tab1">Pas de r&eacute;sultat.</div>
			</div>
			
			<div data-role="collapsible" data-collapsed="false" data-mini="true">
				<h3>Indicateur Qualit&eacute; VSR</h3>
				<div id="div_tab4">Pas de r&eacute;sultat.</div>
			</div>
			
			<div data-role="collapsible" data-collapsed="false" data-mini="true">
				<h3>P&eacute;nalit&eacute;</h3>
				<div id="div_tab2">Pas de r&eacute;sultat.</div>
			</div>
			
			<div data-role="collapsible" data-collapsed="false" data-mini="true">
				<h3>Etat du stock</h3>
				<div id="div_tab5">Pas de r&eacute;sultat.</div>
			</div>
			
			<div data-role="collapsible" data-collapsed="false" data-mini="true">
				<h3>Veillissement du stock</h3>
				<div id="div_tabVeilStock">Pas de r&eacute;sultat.</div>
			</div>
		</div>
		<!-- /content -->
		
		<!-- footer -->
		<div data-role="footer" data-position="fixed">
			<a data-role="button" data-icon="search" data-iconpos="notext" class="ui-btn-left" href="javascript:window.location = ('./page_faq.html?mili='+getMilise());">FAQ</a>
			<h1 id="id_affichageUser">User</h1>
			<a data-role="button" data-icon="delete" data-iconpos="notext" class="ui-btn-right" href="javascript:window.location = ('./page_sortie.html?mili='+getMilise());">Logout</a>
		</div>
		<!-- /footer -->
		
	</div>
	<!-- /page -->
</body>
</html>	